package com.example.dairenkun.neufoodshop.service;

import com.example.dairenkun.neufoodshop.bean.AddComment;
import com.example.dairenkun.neufoodshop.bean.DelComment;
import com.example.dairenkun.neufoodshop.bean.EditComment;
import com.example.dairenkun.neufoodshop.bean.Order;


import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/4/10.
 */

public interface CommentService {
    //获取所有评论
    @GET("getAllUserComment.do")
    Call<List<Order>> getCommentList(
            @Query("user_id") int  userid

    );

    //删除评论
    @GET("deleteComment.do")
    Call<DelComment> DelComment(
            @Query("order_id") int  orderid
    );
    //添加评论
    @GET("insertComment.do")
    Call<AddComment> InsertComment(
            @Query("order_id") int  orderid,
            @Query("content") String  content

    );
    //更新评论
    @GET("updateComment.do")
    Call<EditComment> updateComment(
            @Query("order_id") int  orderid,
            @Query("content") String  content
    );
}
